home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Equipement / hMailServer / hMailServer-4.1-Build-136.exe / {app} / PHPWebAdmin / settings_smtp.php < prev    next >
PHP Script  |  2005-07-17  |  3KB  |  62 lines

  1. <?php
  2. /*
  3. ** $Id: settings_smtp.php,v 1.5 2005/07/17 19:01:44 hmailserver Exp $
  4. **
  5. **    hMailServer - Web interface
  6. **
  7. **    File formatted using TAB size 4
  8. **
  9. **    Get hMailserver at http://www.hmailserver.com
  10. **
  11. **    Author: Steen Rab°l <srabol@mail.tele.dk>
  12. **    Copyright (c) 2004, Steen Rab°l <srabol@mail.tele.dk>
  13. **
  14. **  This program is free software; you can redistribute it and/or modify
  15. **  it under the terms of the GNU General Public License as published by
  16. **  the Free Software Foundation; either version 2 of the License, or
  17. **  (at your option) any later version.
  18. **
  19. **  You may not change or alter any portion of this comment or credits
  20. **  of supporting developers from this source code or any supporting
  21. **  source code which is considered copyrighted (c) material of the
  22. **  original comment or credit authors.
  23. **
  24. **  This program is distributed in the hope that it will be useful,
  25. **  but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. **  GNU General Public License for more details.
  28. **
  29. **  You should have received a copy of the GNU General Public License
  30. **  along with this program; if not, write to the Free Software
  31. **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  32. **
  33. */
  34.  
  35. if (hmailGetAdminLevel() != 2)
  36.     hmailHackingAttemp();
  37.  
  38.  
  39. $obSettings    = $obBaseApp->Settings();
  40. $function    = hmailGetVar("function","");
  41.  
  42. if($function == "dosave")
  43. {
  44.     $obSettings->SMTPPort                            = hmailGetVar("SMTPPort");
  45.     $obSettings->MaxSMTPConnections                    = hmailGetVar("MaxSMTPConnections");
  46.     $obSettings->SMTPNoOfTries                        = hmailGetVar("SMTPNoOfTries");
  47.     $obSettings->SMTPMinutesBetweenTry                = hmailGetVar("SMTPMinutesBetweenTry");
  48.     $obSettings->MaxMessageSize                      = hmailGetVar("MaxMessageSize");
  49.     $obSettings->HostName                            = hmailGetVar("HostName");
  50.     $obSettings->SendStatistics                        = (hmailGetVar("SendStatistics") == 1 ? true : false);
  51.     $obSettings->MaxDeliveryThreads                    = hmailGetVar("MaxDeliveryThreads");
  52.     $obSettings->SMTPRelayer                        = hmailGetVar("SMTPRelayer");
  53.     $obSettings->SMTPRelayerPort                    = hmailGetVar("SMTPRelayerPort");
  54.     $obSettings->SMTPRelayerRequiresAuthentication    = (hmailGetVar("SMTPRelayerRequiresAuthentication") == 1 ? true : false);
  55.     $obSettings->SMTPRelayerUsername                = hmailGetVar("SMTPRelayerUsername","");
  56.     $obSettings->SetSMTPRelayerPassword(hmailGetVar("SetSMTPRelayerPassword",""));
  57.     $obSettings->WelcomeSMTP                        = hmailGetVar("WelcomeSMTP","");
  58. }
  59.  
  60. $hmailSmarty->assign("settings", $obSettings);
  61. $hmailSmarty->assign("pagecontent", $hmailSmarty->fetch('settings_smtp.tpl'));
  62. ?>